<div class="modal-header">
    <h4 class="modal-title">{{trainning.Id>0?'更新':'新增'}}培训信息</h4>
</div>
<div class="modal-body">
    <form role="form" class="form-horizontal" name="trainningForm" ng-submit="submit()">
        <div class="row">
            <div class="col-md-6 form-group   padder-md m-n">
                <label class="control-label required">名称</label>
                <input class="form-control" name="Name" ng-model="trainning.Title" required=""/>
            </div>
            <div class="col-md-6 form-group   padder-md m-n">
                <label class="control-label required">分类</label>
                <select class="form-control" name="Category" ng-model="trainning.CategoryId" required=""
                        ng-options="c.Id as c.Name for c in categoryList"></select>
            </div>
        </div>
        <div class="row">
            <div class="col-md-6 form-group   padder-md m-n">
                <label class="control-label required">名额</label>
                <input class="form-control" name="Name" ng-model="trainning.UserLimit" type="number" min="1" required="" />
            </div>
        </div>
      
        <div class="row text-center padder-v">
            <button class="btn btn-primary" type="submit" ng-disabled="trainningForm.$invalid && trainningForm.$pristine" ><i class="fa fa-ok"></i>提交</button>
            <button class="btn btn-danger" type="button" ng-really-message="确认取消吗？" ng-really-click="miss()"><i class="fa fa-off"></i>取消</button>
        </div>
    </form>
</div>
